golang/xenlight: Create stub package
authorRonald Rojas <ronladred@gmail.com>
Wed, 5 Apr 2017 16:05:45 +0000 (17:05 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 6 Apr 2017 14:33:27 +0000 (15:33 +0100)
commit38e6735b19fd4424f20bd30d8bda5ca440aa9adb
tree5b89cff7c646604e4d12adad97499220090f668b
parentde5f36a266b41cafc47c876700a9c1a494aa296f
golang/xenlight: Create stub package

Create a basic Makefile to build and install libxenlight Golang
bindings. Also add a stub package which only opens libxl context.

Include a global xenlight.Ctx variable which can be used as the
default context by the entire program if desired.

For now, return simple errors. Proper error handling will be
added in next patch.

Until we get configure support, disable it by default.  It can be
enabled either by adding "CONFIG_GOLANG=y" to .config, or adding it to
the 'make' line.

Signed-off-by: Ronald Rojas <ronladred@gmail.com>
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Ian Jackson <ian.jackson@citrix.com>
tools/Makefile
tools/Rules.mk
tools/golang/Makefile [new file with mode: 0644]
tools/golang/xenlight/Makefile [new file with mode: 0644]
tools/golang/xenlight/xenlight.go [new file with mode: 0644]